<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<script>
  const dataBuffer = new ArrayBuffer(24);

  const bufferView = new DataView(dataBuffer);

  bufferView.setInt16(4, 10);
  const int16TypeBuffer = bufferView.getInt16(4);

  console.log(int16TypeBuffer)
  // -> 22

  console.log(dataBuffer)
</script>
</body>
</html>
